
<script type="text/javascript" src="tpl/_res/pc/js/jquery.js?v={$setting[Version]}"></script>
<script type="text/javascript" src="tpl/_res/pc/js/jquery.extend.js?v={$setting[Version]}"></script>

<link href="static/css/parser.css?v={$setting[Version]}" rel="stylesheet" type="text/css"/>

<script>
    $(function(){
        $('.-ilinei-block').hover(function(){
            $(this).addClass('-ilinei-block-hover');
        }, function(){
            $(this).removeClass('-ilinei-block-hover');
        });

        $('.-ilinei-block .-ilinei-icon').click(function(){
            var tag = $(this).parent();
            var tag_name = $(tag).attr('tag');

            var message = '';

            if(tag_name == 'block'){
                var file = $(tag).attr('file');
                if(!file){
                    message += 'model:' + $(tag).attr('model') + '<br/>';
                    message += 'method:' + $(tag).attr('method') + '<br/>';
                    message += 'identity:' + $(tag).attr('identity') + '<br/>';
                    message += 'param:' + $(tag).attr('param') + '<br/>';
                    message += 'var:' + $(tag).attr('var') + '<br/>';
                    message += 'pager:' + $(tag).attr('pager') + '<br/>';
                }else{
                    message += 'file:' + $(tag).attr('file') + '<br/>';
                }
            }

            message += '{lang admin.ilinei.frame_parser.view.block.tag.tips}';

            $.dialog({css:'-ilinei-dialog', height:200, title:tag_name + '{lang admin.ilinei.frame_parser.view.block.tag}', message:message});
        })
    });
</script>